function write_data=write_data(output_file_path, write_mode, write_data)
    
    fp = fopen(output_file_path , write_mode);
    for i =1 : length(write_data(:,2))
        fprintf(fp, '%d  %d\n', write_data(i,1), write_data(i, 2));
    end
    fclose(fp);

end